package asimes.time;

import java.time.*;

// 测试注释字体
public class TestTime {
    public static void main(String[] args) {
        Instant instant = Instant.now();
        LocalDate localDate = LocalDate.now();
        LocalTime localTime = LocalTime.now();
        LocalDateTime localDateTime = LocalDateTime.now();
        ZonedDateTime zonedDateTime = ZonedDateTime.now();

        System.out.println("Instant: " + instant);
        System.out.println("localDate: " + localDate);
        System.out.println("localTime: " + localTime);
        System.out.println("localDateTime: " + localDateTime);
        System.out.println("zonedDateTime: " + zonedDateTime);

        Year year = Year.now();
        YearMonth yearMonth = YearMonth.now();
        MonthDay monthDay = MonthDay.now();
        System.out.println("year:" + year);
        System.out.println("yearMonth:" + yearMonth);
        System.out.println("monthDay:" + monthDay);
    }
}
